package offersimple

import "ming/algorithm-for-go/leetcode/simple/model"

func reversePrint(head *model.ListNode) []int {
	if head == nil {
		return []int{}
	}
	return append(reversePrint(head.Next), head.Val)
}
